<?php
class Controller extends PXFController 
{
	public function __construct()
	{
		parent::__construct(); 
	}

	public function index()
	{
		$mod_images = PXFModel::getModel('item_image');			
		$img_id = PXFRequest::reqGetOrDefault('id',PXFConfig::DEFAULT_IMAGE); 
		$image = $mod_images->find($img_id);
		header('content-type:image/jpg');
		echo $image->thumbail;
	}
}
?>
